/*
@Author   : Uyynot
@Email    : uyynot@qq.com
@Time     : 2023/8/25 16:53
@File     : delete.go
@Project  : web_scaff
@Desc     :
*/
package user

import (
	"web_scaff/configs"
	"web_scaff/models"
)

func Delete(id string) error {
	return configs.Db.Debug().Where("uid=?", id).Delete(&models.User{}).Error
}
